Linearity, Control Effects, and Behavioral Types
نویسندگان
چکیده
Mainstream programming idioms intensively rely on state mutation, sharing, and concurrency. Designing type systems for handling and disciplining such idioms is challenging, due to long known conflicts between internal nondeterminism, linearity, and control effects such as exceptions. In this paper, we present the first type system that accommodates non-deterministic and abortable behaviors in the setting of session-based concurrent programs. Remarkably, our type system builds on a Curry-Howard correspondence with (classical) linear logic conservatively extended with two dual modalities capturing an additive (co)monad, and provides a first example of a Curry-Howard interpretation of a realistic programming language with built-in internal non-determinism. Thanks to its deep logical foundations, our system elegantly addresses several well-known tensions between control, linearity, and non-determinism: globally, it enforces progress and fidelity; locally, it allows the specification of non-deterministic and abortable computations. The expressivity of our system is illustrated by several examples, including a typed encoding of a higher-order functional language with threads, session channels, non-determinism, and exceptions.
منابع مشابه
A review of pathological explanation on behavioral addictions and its comparison with drug addictions
In the past, addiction was known only by drug addictions, Currently, its definition has become much broader. Gambling, compulsive buying, video game addiction, problematic internet use, and even extreme work or sports can be classified as addictions. The existing criteria for experts in diagnosing different types of behavioral addictions are highly controversial, and this has made it difficult ...
متن کاملThe Effectiveness of Cognitive- Behavior Therapy and its Computerized Version on Reduction of Pain Intensity and Anger in Children with Cancer in Ahvaz
Introduction: Cancer is one of the medical problems that have been associated with pain. Moreover, the pain combined by negative emotions such as anxiety, depression, anger. In addition, the negative emotions lead to reduced quality of life, disruption of sleep habits and eating people. Todays by achievement in new technologies and wide influences, the psychological interventions are affected b...
متن کاملComparison of the Effects of Attachment Training for Mothers on the Behavioral Responses of Premature Infants: A Randomized Clinical Trial
Background: Premature infants are among high-risk groups in community who need to be hospitalized at intensive care units for survival and receiving basic or special care. Hospitalization at neonatal intensive care units (NICUs) unsettles the family and leads to the separation of parents from their infants. This study aimed to determine the effects of maternal attachment behaviors on the behavi...
متن کاملEffects of Vestibular and Tactile Stimulation on Behavioral Disorders due to Sensory Processing Deficiency in 3-13 Years Old Iranian Autistic Children
Objectives: Among the most important problems of autistic children are the behavioral disorders due to sensory processing deficiency, which are typically reflected in behaviors such as impulsivity, attention and concentration disorders, undesirable emotional reactions, sensory seeking in the form of stereotype behaviors, self-injury and self-stimulating. The present study aimed at exploring the...
متن کاملLinearization of M-LINC Systems Using GMP and Particle Swarm Optimization for Wireless Communications
In this paper, an efficient algorithm for the efficiency maximization of the multilevel linear amplification using nonlinear components (M-LINC) systems is proposed regarding the linearity of the system. In this algorithm, we use the generalized memory polynomial (GMP) to provide a behavioral model for the power amplifier (PA) and calculate the power spectral density (PSD) of the output signal ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2017